class Money(object):
    def __init__(self):
        self.money = 0

    def getMoney(self):
        return self.money

    def setMoney(self, value):
        if isinstance(value, int):
            self.money = value
        else:
            print("erro：输入类型不一致")
        dateValue = property(getMoney, setMoney)


def main():
    money = Money()
    money.dateValue = 100
    print(money.dateValue)


if __name__ == "__main__":

    main()